package ned

class Rack {

	String name
	
	static belongsTo = [facility:Facility]
	
	static hasMany = [installations:Installation]
	
    static constraints = {
    	facility(nullable: false)
    	name(nullable: false, blank: false, maxSize: 32, unique: 'facility')
    }
    
    String toString() {name}
}
